<!DOCTYPE html>
<html>
<head>
    <title><?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <title>mafiashare.net - FREE THEMES & TEMPLATES</title>
    <?php echo \Fuel\Core\Asset::css('backend/main.css');?>
    <link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css' />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/spinner/jquery.mousewheel.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/spinner/ui.spinner.js');?>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> 

    <?php echo \Fuel\Core\Asset::js('backend/plugins/wysiwyg/jquery.wysiwyg.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/wysiwyg/wysiwyg.image.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/wysiwyg/wysiwyg.link.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/wysiwyg/wysiwyg.table.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/flot/jquery.flot.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/flot/jquery.flot.orderBars.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/flot/jquery.flot.pie.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/flot/excanvas.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/flot/jquery.flot.resize.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/tables/jquery.dataTables.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/tables/colResizable.min.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/forms.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/autogrowtextarea.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/autotab.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.validationEngine-en.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.validationEngine.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.dualListBox.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/chosen.jquery.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.maskedinput.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.inputlimiter.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/forms/jquery.tagsinput.min.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/other/calendar.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/other/elfinder.min.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/uploader/plupload.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/uploader/plupload.html5.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/uploader/plupload.html4.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/uploader/jquery.plupload.queue.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.progress.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.jgrowl.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.tipsy.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.alerts.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.colorpicker.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/wizards/jquery.form.wizard.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/wizards/jquery.validate.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.breadcrumbs.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.collapsible.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.ToTop.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.listnav.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.sourcerer.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.timeentry.min.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/plugins/ui/jquery.prettyPhoto.js');?>

    <?php echo \Fuel\Core\Asset::js('backend/custom.js');?>
    <?php echo \Fuel\Core\Asset::js('backend/charts/chart.js');?>

</head>
<body>
    <!-- Top navigation bar -->
    <div id="topNav">
        <div class="fixed">
            <div class="wrapper">
                <div class="welcome"><a href="#" title=""><?php echo \Fuel\Core\Asset::img('backend/images/userPic.png', array('alt' => ''));?></a><span>Howdy, Eugene!</span></div>
                <div class="userNav">
                    <ul>
                        <li><a href="#" title=""><?php echo \Fuel\Core\Asset::img('backend/images/icons/topnav/profile.png', array('alt' => ''));?><span>Profile</span></a></li>
                        <li><a href="#" title=""><?php echo \Fuel\Core\Asset::img('backend/images/icons/topnav/tasks.png', array('alt' => ''));?><span>Tasks</span></a></li>
                        <li class="dd"><a title=""><?php echo \Fuel\Core\Asset::img('backend/images/icons/topnav/messages.png', array('alt' => ''));?><span>Messages</span><span class="numberTop">8</span></a>
                            <ul class="menu_body">
                                <li><a href="#" title="" class="sAdd">new message</a></li>
                                <li><a href="#" title="" class="sInbox">inbox</a></li>
                                <li><a href="#" title="" class="sOutbox">outbox</a></li>
                                <li><a href="#" title="" class="sTrash">trash</a></li>
                            </ul>
                        </li>
                        <li><a href="#" title=""><?php echo \Fuel\Core\Asset::img('backend/images/icons/topnav/settings.png', array('alt' => ''));?><span>Settings</span></a></li>
                        <li><a href="login.html" title=""><?php echo \Fuel\Core\Asset::img('backend/images/icons/topnav/logout.png', array('alt' => ''));?><span>Logout</span></a></li>
                    </ul>
                </div>
                <div class="fix"></div>
            </div>
        </div>
    </div>
    <!-- Header -->
    <div id="header" class="wrapper">
        <div class="logo"><a href="/" title=""><?php echo \Fuel\Core\Asset::img('backend/images/loginLogo.png', array('alt' => ''));?></a></div>
        
        <div class="fix"></div>
    </div>
    
    <!-- Content wrapper -->
    <div class="wrapper">
        <!-- Left navigation -->
        <div class="leftNav">
            <ul id="menu">
                <?php 
                $menu = Fuel\Core\Config::load('menu');
                foreach($menu['menu']['li'] as $key=>$li):
                ?>
                <li class="<?php echo $key;?>">
                    <?php foreach($li as $k=>$data):?>
                        <a href="<?php echo $data['href'];?>" title="<?php echo $data['title'];?>" class="<?php echo $data['class'];?>">
                            <span><?php echo $data['text'];?></span>
                            <?php if($data['span'] != ''):?><span class="<?php echo $data['spanClass'];?>"><?php echo $data['span'];?></span><?php endif;?>
                        </a>
                        <?php if($data['span'] != ''):?>
                        <ul class="sub">
                            <?php foreach($data['li'] as $i=>$item):?>
                            <li><a href="<?php echo $item['href'];?>" title=""><?php echo $item['text'];?></a></li>
                            <?php endforeach;?>
                        </ul>
                        <?php endif;?>
                    <?php endforeach;?>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
        <?php echo $content; ?>
        <div class="fix"></div>
    </div>
    
    
    <!-- Footer -->
    <div id="footer">
            <div class="wrapper">
            <span>&copy; Copyright 2011. All rights reserved. It's Brain admin theme by <a href="#" title="">Eugene Kopyov</a></span>
        </div>
    </div>
</body>
</html>
